package cn.dada.dadarecipes.mall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class ProductEditParam {
    @ApiModelProperty(value = "商家id")
    @NotNull(message = "商家id不能为空")
    Long businessId;
    @ApiModelProperty(value = "店铺id")
    @NotNull(message = "店铺id不能为空")
    Long shopId;
    @ApiModelProperty(value = "商品名称")
    String productName;
    @ApiModelProperty(value = "商品描述")
    String description;
    @ApiModelProperty(value = "商品价格")
    BigDecimal price;
    @ApiModelProperty(value = "库存数量")
    Long stock;
    @ApiModelProperty(value = "商品类别")
    String category;
    @ApiModelProperty(value = "商品图片")
    String productImg;
    @ApiModelProperty(value = "商品视频")
    String productVideo;
}
